Skip to content

Instantly share code, notes, and snippets.

@BigNerd95
BigNerd95 / glddnsupdater.sh
Last active February 19, 2026 01:11
GL.iNet ddns update script [will associate your wan IP to puXXXXX.gl-inet.com where XXXXX are the latest 5 bytes of the mac address]
#!/bin/sh
# OpenWRT support libs
. /lib/functions.sh
. /lib/functions/network.sh
. /usr/share/libubox/jshn.sh
ip_regex="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
ddns=
code=
@karpathy
karpathy / microgpt.py
Last active February 19, 2026 01:10
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@jake-stewart
jake-stewart / color256.md
Last active February 19, 2026 01:09
Terminals should generate the 256-color palette

Terminals should generate the 256-color palette from the user's base16 theme.

If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.

The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active February 19, 2026 01:07
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@pashov
pashov / MAKE_NO_MISTAKES_CLAUDE.md
Created February 18, 2026 09:31
MAKE NO MISTAKES
name description
make-no-mistakes
Appends "MAKE NO MISTAKES." to every user prompt before processing it. Use this skill whenever you want Claude to be maximally precise, careful, and error-free in its responses.

Make No Mistakes

This skill instructs Claude to append the directive "MAKE NO MISTAKES." to every user prompt it receives before generating a response.

Instructions

@SteveSandersonMS
SteveSandersonMS / sequence-number.md
Last active February 19, 2026 01:05
Why sequence numbers should relate to code line numbers, not execution order

Why sequence numbers should relate to code line numbers, not execution order

Or in other words, why you should hard-code sequence numbers, and not generate them programmatically.

Unlike .jsx files, .razor/.cshtml files are always compiled. This is potentially a great advantage for .razor, because we can use the compile step to inject information that makes things better or faster at runtime.

A key example of this are sequence numbers. These indicate to the runtime which outputs came from which distinct and ordered lines of code. The runtime uses this information to generate efficient tree diffs in linear time, which is far faster than is normally possible for a general tree diff algorithm.

Example

@jetfir3
jetfir3 / download_workstation.ps1
Last active February 19, 2026 01:04
Download VMware Workstation for Windows without a Broadcom Account
<#
.SYNOPSIS
Download VMware Workstation Pro for Windows from Archive.org
.DESCRIPTION
This script downloads VMware Workstation installers directly from the archive.org VMware Workstation archive.
It allows for interactive menu selection or direct version specification.
.PARAMETER Version
Specifies the version of VMware Workstation to download (e.g., "17.6.3").
.PARAMETER Help
Displays the help information for the script and exits.
@anvarazizov
anvarazizov / listener_public.py
Created February 18, 2026 21:56
listener_public.py
"""Meshtastic LoRa ListenerOff-Grid AI with Tool Calling
Architecture:
phi4-mini = smart router (decides which tool to call)
gemma3:12b = knowledge brain (for general Q&A)
HA API = home automation (sensors, device control)
Radio = LoRa mesh I/O
Flow:
Radio msginternet check